// 参考写法
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useUserStore = defineStore(
  'user',
  () => {
    const loginInfo = ref({})

    return { loginInfo }
  },
  {
    persist: {
      key: 'qyglyLoginInfoStore',
    },
  },
)
